package com.lbz.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Order {
    private Integer id;

    private Long orderNo;   //订单号

    private Integer userId;

    private Integer shippingId;

    private Integer status; //订单状态:0-已取消-10-未付款，20-已付款，40-已发货，50-交易成功，60-交易关闭

    private BigDecimal payment; //订单金额

    private Integer paymentType;    //支付方式

    private Integer postage;

    private Date paymentTime;

    private Date deliveryTime;

    private Date endTime;

    private Date closeTime;

    private Date createTime;

    private Date updateTime;

    public Order() {
    }

    public Order(Integer id, Long orderNo, Integer userId, Integer shippingId, Integer status, BigDecimal payment, Integer paymentType, Integer postage, Date paymentTime, Date deliveryTime, Date endTime, Date closeTime, Date createTime, Date updateTime) {
        this.id = id;
        this.orderNo = orderNo;
        this.userId = userId;
        this.shippingId = shippingId;
        this.status = status;
        this.payment = payment;
        this.paymentType = paymentType;
        this.postage = postage;
        this.paymentTime = paymentTime;
        this.deliveryTime = deliveryTime;
        this.endTime = endTime;
        this.closeTime = closeTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}